package date1128.composite;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.lu.jdog.util.Resource;

//<!-- 组合属性注入 -->
public class SpringTest {
	private static ApplicationContext applicationContext;
	public static void main(String[] args) {
		applicationContext = new ClassPathXmlApplicationContext(Resource.getAssertPath(SpringTest.class,"beans.xml"));
		Xiyouji xiyouji = applicationContext.getBean("xiyouji",Xiyouji.class);
		System.out.println(xiyouji.toString());
	}
}
